﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class addequipmentmaintenance报废申请 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "EquipmentBad",
                columns: table => new
                {
                    Id = table.Column<long>(type: "bigint", nullable: false),
                    MaterialId = table.Column<int>(type: "int", nullable: true),
                    MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MaterialName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Reason = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ChuLiRId = table.Column<int>(type: "int", nullable: true),
                    ChuLiRName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Status = table.Column<int>(type: "int", nullable: true),
                    CreateUserId = table.Column<long>(type: "bigint", nullable: false),
                    CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
                    ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EquipmentBad", x => x.Id);
                });

            //migrationBuilder.CreateTable(
            //    name: "T_PurchasePlan",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        PlanName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        Status = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        TotalAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_PurchasePlan", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "T_PurchaseStandard",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        StandardName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        EmployeeCount = table.Column<int>(type: "int", nullable: false),
            //        Description = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_PurchaseStandard", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "T_Quote",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        ProductName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
            //        Supplier = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        QuoteDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        Description = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_Quote", x => x.Id);
            //    });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EquipmentBad");

            migrationBuilder.DropTable(
                name: "T_PurchasePlan");

            migrationBuilder.DropTable(
                name: "T_PurchaseStandard");

            migrationBuilder.DropTable(
                name: "T_Quote");
        }
    }
}
